package com.logic.system.persistence.write;

import java.util.HashMap;
import java.util.List;

import com.logic.system.domain.User;
import com.logic.system.domain.UserArea;
import com.logic.system.domain.UserOrg;
import com.logic.system.domain.UserProject;
import com.logic.system.domain.UserRole;

public interface UserWriteMapper {

    int deleteByPrimaryKey(User record);

    int insertSelective(User record);

    int updateByPrimaryKeySelective(User record);

    int insertUserAreas(List<UserArea> userAreas);

    int insertUserRoles(List<UserRole> userRoles);

    int deleteUserRoles(Integer userId);

    int insertUserOrgSelective(UserOrg record);

    void deleteUserOrgByUserId(Integer userId);

    void deleteUserAreaByUserId(Integer userId);

    int insertUserAreaSelective(UserArea record);

    int insertUserProjectSelective(UserProject userProject);

    int insertUserProjects(List<UserProject> userProjects);

    void updateUserProjectBySelective(UserProject userProject);

    void updateByUserProByUserPrj(UserProject userProject);

    void updatePasswordByLoginId(String loginId, String pswMd5);
}
